/**
 * @author 陈泰来
 * @version V1.0
 * @Project echo-java-base
 * @Title 简历原型类
 * @Description *
 * @Package designmodel.prototype.model
 * @date 2021/3/25 5:13 下午
 * @Copyright:学如逆水行舟，不进则退 .
 */
package designmodel.prototype.model;

public class Resume implements Cloneable {
    /**
     * @Description 姓名
     * @Author chentl
     * @Create: 2021/3/25 5:13 下午
     */
    private String name;
    /**
     * @Description 年龄
     * @Author chentl
     * @Create: 2021/3/25 5:14 下午
     */
    private Integer age;
    /**
     * @Description 经验
     * @Author chentl
     * @Create: 2021/3/25 5:13 下午
     */
    private String experience;

    public Resume(String name, Integer age, String experience) {
        this.name = name;
        this.age = age;
        this.experience = experience;
    }

    /**
     * @return void
     * @author chentl
     * @description 展示简历
     * @date 2021/3/25 5:15 下午
     * @params []
     */
    public void show() {
        System.out.printf("姓名：%s | 年龄：%d | 工作经验：%s \n", name, age, experience);
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        System.out.println(name + "克隆了一份自己哦");
        return super.clone();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getExperience() {
        return experience;
    }

    public void setExperience(String experience) {
        this.experience = experience;
    }
}
